package com.andy.wang.service;

import com.andy.wang.pojo.Room;
import com.andy.wang.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 王更元
 * @description 针对表【room(聊天房)】的数据库操作Service
 * @createDate 2024-04-12 09:26:35
 */
public interface RoomService extends IService<Room> {


    List<Room> selectUhobbys(String hobbys);

    List<Room> getIntelligenceRoom(String hobbys);
    List<Room> getRNameAndUName(String hobbys);

    List<Room> getRooms(int count, String hobbys, String search);

    int countRooms();

    // 房间用户信息
    List<User> getRoomUsers(@Param("rID") int rID);


    // 获取房间ID
    int last();


    // 获取创建完房间的信息
    Room AllShuJu(Integer rID);


}
